Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove LSPIJUtils.getProject(VirtualFile file) #1232

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

angelozerr
Copy link
Contributor

  • LSPIJUtils.getProject(file) return a project fora given file which is wrong because a file (instance) can belong to several projects (if the same file is opened in different project).
  • LSPIJUtils.getModule(file) loops for all opened project and return the module which contains the file for the first opened project. In otherwise this method could return a Module which belong to a project which is not correct.

Those 2 methods should be removed.

@angelozerr angelozerr self-assigned this Oct 18, 2023
@angelozerr angelozerr added bug Something isn't working lsp4ij LSP client for IJ labels Oct 18, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@angelozerr angelozerr merged commit b3252cc into redhat-developer:main Oct 18, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp4ij LSP client for IJ
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants